﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Umbraco.AzureStorage;
using System.IO;

namespace ConsoleApplication1
{
    class Program
    {
        static void Main(string[] args)
        {
            BlobFileSystem bfs = new BlobFileSystem("~/Media");
            string baseFolder = @"c:\Media\";
            string[] filePaths = Directory.GetFiles(baseFolder, "*.*",
                                         SearchOption.AllDirectories);
            foreach (string file in filePaths)
            {
                Console.WriteLine(file.Replace(baseFolder,""));
            }

            FileStream fileStream = new FileStream(filePaths[0], FileMode.Open);


            bfs.AddFile(filePaths[0].Replace(baseFolder, "").Replace(@"\\", @"\"), fileStream);

            Console.ReadKey();

        }
    }
}
